import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sum = new Scanner(System.in);
        int N = sum.nextInt();
        int odd = 0;
        int even = 0;

        if (N % 2 == 0) {
            odd = N / 2;
            even = N / 2;
            System.out.println(odd + " " + even);
        } else {
            odd = N / 2 + 1;
            even = N / 2;
            System.out.println(odd + " " + even);
        }
    }
}

